package com.code.softeem.jc;

public class C extends B{
    private String sex;

    public C() {
        System.out.println("创建c的对象");
    }

    public C(String sex){
        this.sex = sex;
    }

    public C(int id, String name, int age, String type, String sex) {
        super(id, name, age, type);
        this.sex = sex;
        System.out.println("C的有参构造函数");
    }

    public void sleep(){
        System.out.println("睡觉");
    }
}
